<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'area-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'item_type_id'); ?>
		<?php echo $form->dropDownList($model,'item_type_id', $model->getItemTypeOptions()); ?>
		<?php echo $form->error($model,'item_type_id'); ?>
	</div>
    
    <div class="row">
		<?php echo $form->labelEx($model,'start_time'); ?>
        <?php $this->widget('zii.widgets.jui.CJuiDatePicker', array(
            'attribute'=>'start_time',
            'model'=>$model,
            // additional javascript options for the date picker plugin
            'options'=>array(
                'showAnim'=>'fold',
            ),
            'htmlOptions'=>array(
                'style'=>'height:20px;',
                'value'=>empty($model->start_time) ? '' : date('m/d/Y', $model->start_time),
            ),
        ));?>
		<?php echo $form->error($model,'start_time'); ?>
	</div>
    
    <div class="row">
		<?php echo $form->labelEx($model,'end_time'); ?>
        <?php $this->widget('zii.widgets.jui.CJuiDatePicker', array(
            'attribute'=>'end_time',
            'model'=>$model,
            // additional javascript options for the date picker plugin
            'options'=>array(
                'showAnim'=>'fold',
            ),
            'htmlOptions'=>array(
                'style'=>'height:20px;',
                'value'=>empty($model->end_time) ? '' : date('m/d/Y', $model->end_time),
            ),
        ));?>
		<?php echo $form->error($model,'end_time'); ?>
	</div>
    
    <div class="row">
		<?php echo $form->labelEx($model,'about'); ?>
		<?php echo $form->textArea($model,'about'); ?>
		<?php echo $form->error($model,'about'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->